package main

import (
	"fmt"
	"mypro/route"
	"mypro/utils/snowflake"
)

func init() {
	if err := snowflake.Init("2020-07-01", 1); err != nil {
		fmt.Printf("init snowflake failed, err:%v\n", err)
		return
	}

}

func main() {
	router := route.GetRouter()
	router.Run("127.0.0.1:8081")
}
